package com.qiuhu.javase.innerclass;

/**
 * 局部内部类--定义在方法里
 * 
 * @author Administrator
 *
 */
public class Parcel5 {
	public Destionation destionation(String str) {
		class PDestionation implements Destionation {
			private String label;

			private PDestionation(String whereTo) {
				label = whereTo;
			}

			public String readLabel() {
				return label;
			}
		}
		return new PDestionation(str);
	}

	public static void main(String[] args) {
		Parcel5 parcel5 = new Parcel5();
		Destionation d = parcel5.destionation("chenssy");
	}

	interface Destionation {
	}
}
